package com.ad2campaign.engine.db.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ad2campaign.engine.core.TaskStatus;

public class TaskStatusRowMapper implements RowMapper<TaskStatus> 
{

	@Override
	public TaskStatus mapRow(ResultSet rs, int rowNum) throws SQLException 
	{
	    return TaskStatus.getStatus(rs.getInt("status"));
 	}

}
